<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="tt" uri="/tabletags"%>
<html>
<head>
	<title>Table Test</title>
	<link rel="stylesheet" type="text/css" href="../css/tablestyles.css">
	<s:head theme="ajax"/>
</head>
<body>
<hr />
<h3>Pager Example:</h3>
<tt:pager action="Table" pagerCommand="pagerCommand"
	pagerValue="pagerDisplay" />
<hr />
<h3>Sortable Header Example:</h3>
<table>
	<thead>
		<tr>
			<th><tt:sortableHeader action="Table" name="sortColumnKey"
				title="Column 1" sortKey="col1" sortOrder="sortOrder"
				sortable="true" /></th>
			<th><tt:sortableHeader action="Table" name="sortColumnKey"
				title="Column 2" sortKey="col2" sortOrder="sortOrder"
				sortable="true" /></th>
			<th><tt:sortableHeader action="Table" name="sortColumnKey"
				title="Column 3" sortKey="col3" sortOrder="sortOrder"
				sortable="true" /></th>
			<th><tt:sortableHeader action="Table" name="sortColumnKey"
				title="Column 4" sortKey="col4" sortOrder="sortOrder"
				sortable="true" /></th>
			<th><tt:sortableHeader action="Table" name="sortColumnKey"
				title="Column 5" sortKey="col5" sortOrder="sortOrder"
				sortable="true" /></th>
		</tr>
	</thead>
	<tr>
		<td>data</td>
		<td>data</td>
		<td>data</td>
		<td>data</td>
		<td>data</td>
	</tr>
</table>
<hr />
<h3>Table Example1:</h3>
<tt:table value="items" action="Table" pagerCommand="pagerCommand"
	pagerValue="pagerDisplay" sortOrder="sortOrder"
	sortName="sortColumnKey">
	<tt:column title="Color" sortKey="col1" sortable="true">
		<s:property value="name" />
	</tt:column>
	<tt:column title="Number" sortKey="col2" sortable="true">
		<s:property value="value" />
	</tt:column>
</tt:table>
<hr />
<hr />
<h3>Table Example2:</h3>
<tt:table value="items">
	<tt:column title="Name">
		<s:property value="name" />
	</tt:column>
	<tt:column title="Value">
		<s:property value="value" />
	</tt:column>
</tt:table>
<hr />
<hr />
<h3>Table Example3 with client sorting:</h3>
<tt:table value="items" clientSort="true">
	<tt:column title="Name"> 
		<s:property value="name" />
	</tt:column>
	<tt:column title="Value">
		<s:property value="value" />
	</tt:column>
</tt:table>
</body>
</html>
